package com.bwie.controller;

import com.bwie.service.UserService;
import com.bwie.utils.R;
import com.bwie.vo.UserVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Api(tags = "用户微服务")
public class UserController {


    @Autowired
    UserService userService;


    /**
     * @description: 用户账号密码登录功能
     * @author: xushuaihang
     * @Date: 2024/6/17 9:27
     * @param:
     * @param userVo
     * @return: com.bwie.utils.R
     **/
    @ApiOperation("用户登录")
    @PostMapping("/userLogin")
    public R userLogin(@RequestBody UserVo userVo){

        return userService.userLogin(userVo);

    }





}
